package com.bci.pwtz.mysql.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bci.pwtz.mysql.model.Zykzsxsbzp;

public interface ZykzsxsbzpMapper {
    int deleteByPrimaryKey(String id);

    int insert(Zykzsxsbzp record);

    int insertSelective(Zykzsxsbzp record);

    Zykzsxsbzp selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Zykzsxsbzp record);

    int updateByPrimaryKey(Zykzsxsbzp record);
    int deleteById(@Param("id")String id);
    List<Zykzsxsbzp> selectDeviceList(@Param("companyid") Long companyid,@Param("companyids")String[] companyids,@Param("portalType")int portalType,@Param("medLineCodes")String[] medLineCodes,@Param("beginTime") String beginTime,@Param("endTime") String endTime,
            @Param("beginIndex") int beginIndex, @Param("pageSize") int pageSize,@Param("currentDeviceId")String currentDeviceId);
    int selectDeviceCount(@Param("companyid") Long companyid,@Param("companyids")String[] companyids,@Param("portalType")int portalType,@Param("medLineCodes")String[] medLineCodes,@Param("beginTime") String beginTime,@Param("endTime") String endTime);
    
    List<Zykzsxsbzp> selectByDeviceId(@Param("deviceid") String deviceid);
    
    int selectMaxIndexNumber(@Param("deviceid")String deviceid,@Param("phototype")String phototype);
}